package com.ht.file.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;
/**
 * 附件表
 * @author zcl
 */
@Entity
@Table(name = "ht_adenexa_info", catalog = "htoa" )
public class AdenexaModel implements Serializable {
	private static final long serialVersionUID = 1792319386920175541L;
	
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "uuid", unique = true, nullable = false, length = 64)
	private String uuid;
	
	@Column(name="filename",nullable = false,length=255)
	private String filename;//文件名
	
	@Column(name="createBy",nullable = false,length=64)
	private String createBy;//创建人
	
	@Temporal(TemporalType.DATE)
	@Column(name="createDate",nullable = false)
	private Date createDate;//创建日期
	
	@Column(name="remark",nullable = false,length=1000)
	private String remark;//备注
	
	@Column(name="pid",nullable = false,length=64)
	private String pid;//关联补充更新表
	
	@Column(name="filesize",nullable = false,length=20)
	private String filesize;//文件大小
	
	@Column(name="filenameNew",nullable = false,length=255)
	private String filenameNew;//新生成的文件名
	
	@Column(name="filepath",nullable = false,length=1000)
	private String filepath;//文件路径

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getFilesize() {
		return filesize;
	}

	public void setFilesize(String filesize) {
		this.filesize = filesize;
	}

	public String getFilenameNew() {
		return filenameNew;
	}

	public void setFilenameNew(String filenameNew) {
		this.filenameNew = filenameNew;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}
	
}
